
<?php $title_show = empty ($datacontent['id'])?"Add":"Edit"; ?>
  <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/skin/back-end/css/chantable.css"/>
  <h1>Order Management <span class="greysubheading"><?php echo $title_show; ?></span></h1>
<form id="news-form" action="" method="POST" enctype="multipart/form-data" name="form">
  <div id="c_wapper">
  <fieldset ><legend>Field:</legend>
  <table>
  <tbody>
<?php echo textfield('ten_sp','Ten SP',((array_key_exists('ten_sp', $datacontent))?$datacontent['ten_sp']:null))?>
<?php echo textfield('soluong','So Luong',((array_key_exists('soluong', $datacontent))?$datacontent['soluong']:null))?>
<?php echo textfield('gia','Gia',((array_key_exists('gia', $datacontent))?$datacontent['gia']:null))?>
<?php echo textfield('tenkhachhang','Khach Hang',((array_key_exists('tenkhachhang', $datacontent))?$datacontent['tenkhachhang']:null))?>
<?php echo textfield('email','Email',((array_key_exists('email', $datacontent))?$datacontent['email']:null))?>
<?php echo textfield('dien_thoai','Dien Thoai',((array_key_exists('dien_thoai', $datacontent))?$datacontent['dien_thoai']:null))?>
<?php echo plaintext('mota','Mo Ta',((array_key_exists('mota', $datacontent))?$datacontent['mota']:null))?>
<?php echo datefield('order_date','Ngay Dat',((array_key_exists('order_date', $datacontent))?$datacontent['order_date']:null))?>
<?php echo dropdown('trangthai','Trang Thai',array('New'=>'New','Process'=>'Process','Finished'=>'Finished'),((array_key_exists('trangthai', $datacontent))?$datacontent['trangthai']:null)) ?>

  </tbody>
  </table>
  </fieldset>
  <table>
  <tr>
  <td>
  <button type="submit" id="button">Edit</button>
  <button type="reset" id="reset" onClick="location.reload(true)" id="button">Reset</button>
  </td>
  </tr>
  </table>
  </div>
  </form>
	